package com.mdb.open.trade.service.trade.handle.enums;

import com.mdb.bc.api.enums.ApiEnum;
import com.mdb.open.common.enums.trade.type.ChargeBearerTypeEnum;

public enum ChargeInwardTypeEnum implements ApiEnum<String> {
	S("SHA") {
		@Override
		public ChargeBearerTypeEnum getChargeBearerTypeEnum() {
			return ChargeBearerTypeEnum.SHA_CHARGE;
		}
	},
	B("BEN") {
		@Override
		public ChargeBearerTypeEnum getChargeBearerTypeEnum() {
			return ChargeBearerTypeEnum.RECEIVER_CHARGE;
		}
	},
	O("OUR") {
		@Override
		public ChargeBearerTypeEnum getChargeBearerTypeEnum() {
			return ChargeBearerTypeEnum.REMITTANCE_CHARGE;
		}
	},
	;

	ChargeInwardTypeEnum(String text) {
		this.text = text;
	}

	private String text;

	private ChargeBearerTypeEnum chargeBearerTypeEnum;

	public ChargeBearerTypeEnum getChargeBearerTypeEnum() {
		return chargeBearerTypeEnum;
	}

	@Override
	public String getValue() {
		return this.name();
	}

	@Override
	public String getText() {
		return text;
	}
}
